* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f5f5f5;
    font-family: Arial, sans-serif;
}

/* 用户信息区域样式 */
.user-info {
	margin-top: 70px;
    background: #f0f7ff;
    width: 100%;
    padding: 20px 0;
    margin-bottom: 20px;
}

.user-info-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 100px;
}

.user-info-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.username {
    font-size: 18px;
    color: #333;
    font-weight: bold;
}

.user-desc {
    color: #666;
    font-size: 14px;
    margin-left: 10px;
}

.user-stats {
    display: flex;
    gap: 40px;
    margin-left: auto;
    margin-right: 40px;
}

.stat-item {
    text-align: center;
}

.stat-item .num {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.stat-item .label {
    font-size: 14px;
    color: #666;
}

.settings-btn {
    padding: 6px 15px;
    background: #fff;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 5px;
    height: fit-content;
    transition: all 0.3s;
}

.settings-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.settings-btn i {
    font-size: 14px;
}

/* 主容器样式 */
.grzy-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    padding: 0 20px;
}

/* 左侧菜单样式 */
.left-menu {
    width: 240px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-list li {
    padding: 20px 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #666;
    transition: all 0.3s;
}

.menu-list li:hover {
    background: #f9f9f9;
}

.menu-list li.active {
    background: #f5f5f5;
    color: #ff0036;
    font-weight: bold;
}

/* 内容区域样式 */
.content-area {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-height: 600px;
}

/* 课程标签和订单标签共用样式 */
.course-tabs,
.order-tabs {
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.course-tabs .tab,
.order-tabs .tab {
    display: inline-block;
    padding: 15px 30px;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    position: relative;
    transition: all 0.3s;
}

.course-tabs .tab:hover,
.order-tabs .tab:hover {
    color: #ff0036;
}

.course-tabs .tab.active,
.order-tabs .tab.active {
    color: #ff0036;
    font-weight: bold;
}

.course-tabs .tab.active:after,
.order-tabs .tab.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ff0036;
}

/* 课程列表样式 */
.course-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 课程卡片样式 */
.course-card {
    display: flex;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.3s;
    background: #fff;
}

.course-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.course-card img {
    width: 240px;
    height: 135px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 20px;
}

.course-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.course-info h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.course-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #999;
    font-size: 14px;
}

/* 订单列表样式 */
.order-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-item {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    transition: all 0.3s;
}

.order-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.order-item p {
    margin: 8px 0;
    color: #333;
    font-size: 14px;
}

.order-item .order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.order-item .order-time {
    color: #999;
    font-size: 12px;
}

.order-item .order-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.order-item .status-unpaid {
    background: #fff2f0;
    color: #ff4d4f;
}

.order-item .status-completed {
    background: #f6ffed;
    color: #52c41a;
}

.order-item .order-price {
    color: #ff0036;
    font-weight: bold;
}

/* 标签页内容样式 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 60px 0;
    color: #999;
}

.empty-state img {
    width: 200px;
    margin-bottom: 20px;
}

.empty-state p {
    font-size: 14px;
}

/* 图标样式 */
.icon-course,
.icon-star,
.icon-specialty,
.icon-order {
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
}

.icon-course {
    background-image: url('../img/course-icon.png');
}

.icon-star {
    background-image: url('../img/star-icon.png');
}

.icon-specialty {
    background-image: url('../img/specialty-icon.png');
}

.icon-order {
    background-image: url('../img/order-icon.png');
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式样式 */
@media (max-width: 1200px) {
    .user-info-content {
        flex-direction: column;
        height: auto;
        padding: 20px;
        gap: 20px;
    }

    .user-stats {
        margin: 0;
    }

    .settings-btn {
        margin-top: 10px;
    }

    .grzy-container {
        flex-direction: column;
        padding: 20px;
    }

    .left-menu {
        width: 100%;
    }
}

@media (max-width: 768px) {

    .course-card,
    .order-item {
        flex-direction: column;
    }

    .course-card img {
        width: 100%;
        height: auto;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .user-info-left {
        flex-direction: column;
        text-align: center;
    }

    .user-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .course-tabs .tab,
    .order-tabs .tab {
        padding: 15px 20px;
        font-size: 14px;
    }

    .content-area {
        padding: 20px;
    }
}